$OpenBSD: patch-bfd_elf_c,v 1.6 2015/03/15 02:58:07 pascal Exp $
--- bfd/elf.c.orig	Fri Feb 20 18:11:44 2015
+++ bfd/elf.c	Fri Feb 20 22:12:26 2015
@@ -8957,6 +8957,11 @@ elfcore_grok_openbsd_procinfo (bfd *abfd, Elf_Internal
 static bfd_boolean
 elfcore_grok_openbsd_note (bfd *abfd, Elf_Internal_Note *note)
 {
+  int lwp;
+
+  if (elfcore_netbsd_get_lwpid (note, &lwp))
+    elf_tdata (abfd)->core->lwpid = lwp;
+
   if (note->type == NT_OPENBSD_PROCINFO)
     return elfcore_grok_openbsd_procinfo (abfd, note);
 
